-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI stays no responsive when the amount entered with many decimals #456
UI stays no responsive when the amount entered with many decimals #456
Conversation
✅ Deploy Preview for rococo-souffle-a625f5 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm that it works as expected and fixes the bug.
…en-the-amount-entered-with-many-decimals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thanks for refactoring 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…en-the-amount-entered-with-many-decimals
The We have defined an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool changes 👍 thanks for taking the time to also write tests.
I tested the input for the issuing/redeeming and they work great.
The staking view is broken for me on Pendulum (works on Foucoco). Console says 'too many re-renders'.
Also, let's use that input also in the input fields for staking. And eventually also for Nabla but I'm also fine if we only change that in the refactoring PR since nabla is currently using a different component.
@Sharqiewicz as soon i open the deploy preview this error is shown, even before interacting with the input field. Can we remove that error or is it intended? Otherwise works are expected with 7 decimals |
…en-the-amount-entered-with-many-decimals
|
Status | Count |
---|---|
1 | |
37 |
Click to toggle table visibility
Name | Status | Previous | Current |
---|---|---|---|
@graphql-tools/delegate |
10.0.10 | 10.0.11 | |
@graphql-tools/documents |
1.0.0 | 1.0.1 | |
@graphql-tools/schema |
10.0.3 | 10.0.4 | |
@graphql-tools/utils |
10.2.0 | 10.2.1 | |
@npmcli/arborist |
7.5.2 | 7.5.3 | |
@npmcli/config |
8.3.2 | 8.3.3 | |
@npmcli/package-json |
5.1.0 | 5.1.1 | |
@peculiar/webcrypto |
1.4.6 | 1.5.0 | |
@testing-library/preact |
3.2.3 | 3.2.4 | |
@testing-library/user-event |
- | 14.5.2 | |
@typescript-eslint/eslint-plugin |
7.10.0 | 7.11.0 | |
@typescript-eslint/parser |
7.10.0 | 7.11.0 | |
@typescript-eslint/scope-manager |
7.10.0 | 7.11.0 | |
@typescript-eslint/type-utils |
7.10.0 | 7.11.0 | |
@typescript-eslint/types |
7.10.0 | 7.11.0 | |
@typescript-eslint/typescript-estree |
7.10.0 | 7.11.0 | |
@typescript-eslint/utils |
7.10.0 | 7.11.0 | |
@typescript-eslint/visitor-keys |
7.10.0 | 7.11.0 | |
@walletconnect/core |
2.13.0 | 2.13.1 | |
@walletconnect/sign-client |
2.13.0 | 2.13.1 | |
@walletconnect/types |
2.13.0 | 2.13.1 | |
@walletconnect/universal-provider |
2.13.0 | 2.13.1 | |
@walletconnect/utils |
2.13.0 | 2.13.1 | |
caniuse-lite |
1.0.30001623 | 1.0.30001625 | |
electron-to-chromium |
1.4.783 | 1.4.786 | |
eslint-plugin-react |
7.34.1 | 7.34.2 | |
libnpmdiff |
6.1.2 | 6.1.3 | |
libnpmexec |
8.1.1 | 8.1.2 | |
libnpmfund |
5.0.10 | 5.0.11 | |
libnpmpack |
7.0.2 | 7.0.3 | |
libnpmpublish |
9.0.8 | 9.0.9 | |
libnpmsearch |
7.0.5 | 7.0.6 | |
libnpmversion |
6.0.2 | 6.0.3 | |
loader-utils |
3.2.1 | 3.2.2 | |
npm |
10.8.0 | 10.8.1 | |
sass |
1.77.2 | 1.77.3 | |
ua-parser-js |
1.0.37 | 1.0.38 | |
webcrypto-core |
1.7.9 | 1.8.0 |
|
Status | Count |
---|---|
1 | |
37 |
Click to toggle table visibility
Name | Status | Previous | Current |
---|---|---|---|
@graphql-tools/delegate |
10.0.10 | 10.0.11 | |
@graphql-tools/documents |
1.0.0 | 1.0.1 | |
@graphql-tools/schema |
10.0.3 | 10.0.4 | |
@graphql-tools/utils |
10.2.0 | 10.2.1 | |
@npmcli/arborist |
7.5.2 | 7.5.3 | |
@npmcli/config |
8.3.2 | 8.3.3 | |
@npmcli/package-json |
5.1.0 | 5.1.1 | |
@peculiar/webcrypto |
1.4.6 | 1.5.0 | |
@testing-library/preact |
3.2.3 | 3.2.4 | |
@testing-library/user-event |
- | 14.5.2 | |
@typescript-eslint/eslint-plugin |
7.10.0 | 7.11.0 | |
@typescript-eslint/parser |
7.10.0 | 7.11.0 | |
@typescript-eslint/scope-manager |
7.10.0 | 7.11.0 | |
@typescript-eslint/type-utils |
7.10.0 | 7.11.0 | |
@typescript-eslint/types |
7.10.0 | 7.11.0 | |
@typescript-eslint/typescript-estree |
7.10.0 | 7.11.0 | |
@typescript-eslint/utils |
7.10.0 | 7.11.0 | |
@typescript-eslint/visitor-keys |
7.10.0 | 7.11.0 | |
@walletconnect/core |
2.13.0 | 2.13.1 | |
@walletconnect/sign-client |
2.13.0 | 2.13.1 | |
@walletconnect/types |
2.13.0 | 2.13.1 | |
@walletconnect/universal-provider |
2.13.0 | 2.13.1 | |
@walletconnect/utils |
2.13.0 | 2.13.1 | |
caniuse-lite |
1.0.30001623 | 1.0.30001625 | |
electron-to-chromium |
1.4.783 | 1.4.786 | |
eslint-plugin-react |
7.34.1 | 7.34.2 | |
libnpmdiff |
6.1.2 | 6.1.3 | |
libnpmexec |
8.1.1 | 8.1.2 | |
libnpmfund |
5.0.10 | 5.0.11 | |
libnpmpack |
7.0.2 | 7.0.3 | |
libnpmpublish |
9.0.8 | 9.0.9 | |
libnpmsearch |
7.0.5 | 7.0.6 | |
libnpmversion |
6.0.2 | 6.0.3 | |
loader-utils |
3.2.1 | 3.2.2 | |
npm |
10.8.0 | 10.8.1 | |
sass |
1.77.2 | 1.77.3 | |
ua-parser-js |
1.0.37 | 1.0.38 | |
webcrypto-core |
1.7.9 | 1.8.0 |
|
Status | Count |
---|---|
1 | |
37 |
Click to toggle table visibility
Name | Status | Previous | Current |
---|---|---|---|
@graphql-tools/delegate |
10.0.10 | 10.0.11 | |
@graphql-tools/documents |
1.0.0 | 1.0.1 | |
@graphql-tools/schema |
10.0.3 | 10.0.4 | |
@graphql-tools/utils |
10.2.0 | 10.2.1 | |
@npmcli/arborist |
7.5.2 | 7.5.3 | |
@npmcli/config |
8.3.2 | 8.3.3 | |
@npmcli/package-json |
5.1.0 | 5.1.1 | |
@peculiar/webcrypto |
1.4.6 | 1.5.0 | |
@testing-library/preact |
3.2.3 | 3.2.4 | |
@testing-library/user-event |
- | 14.5.2 | |
@typescript-eslint/eslint-plugin |
7.10.0 | 7.11.0 | |
@typescript-eslint/parser |
7.10.0 | 7.11.0 | |
@typescript-eslint/scope-manager |
7.10.0 | 7.11.0 | |
@typescript-eslint/type-utils |
7.10.0 | 7.11.0 | |
@typescript-eslint/types |
7.10.0 | 7.11.0 | |
@typescript-eslint/typescript-estree |
7.10.0 | 7.11.0 | |
@typescript-eslint/utils |
7.10.0 | 7.11.0 | |
@typescript-eslint/visitor-keys |
7.10.0 | 7.11.0 | |
@walletconnect/core |
2.13.0 | 2.13.1 | |
@walletconnect/sign-client |
2.13.0 | 2.13.1 | |
@walletconnect/types |
2.13.0 | 2.13.1 | |
@walletconnect/universal-provider |
2.13.0 | 2.13.1 | |
@walletconnect/utils |
2.13.0 | 2.13.1 | |
caniuse-lite |
1.0.30001623 | 1.0.30001625 | |
electron-to-chromium |
1.4.783 | 1.4.786 | |
eslint-plugin-react |
7.34.1 | 7.34.2 | |
libnpmdiff |
6.1.2 | 6.1.3 | |
libnpmexec |
8.1.1 | 8.1.2 | |
libnpmfund |
5.0.10 | 5.0.11 | |
libnpmpack |
7.0.2 | 7.0.3 | |
libnpmpublish |
9.0.8 | 9.0.9 | |
libnpmsearch |
7.0.5 | 7.0.6 | |
libnpmversion |
6.0.2 | 6.0.3 | |
loader-utils |
3.2.1 | 3.2.2 | |
npm |
10.8.0 | 10.8.1 | |
sass |
1.77.2 | 1.77.3 | |
ua-parser-js |
1.0.37 | 1.0.38 | |
webcrypto-core |
1.7.9 | 1.8.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also looks good to me 👍 can confirm that the staking page is not broken anymore.
Just one more thing, can we change the input field of the staking dialogs to use the new one you created and then limit the amounts to 12 decimals? I noticed that they still allow an unlimited number of decimals.
|
Status | Count |
---|---|
1 | |
37 |
Click to toggle table visibility
Name | Status | Previous | Current |
---|---|---|---|
@graphql-tools/delegate |
10.0.10 | 10.0.11 | |
@graphql-tools/documents |
1.0.0 | 1.0.1 | |
@graphql-tools/schema |
10.0.3 | 10.0.4 | |
@graphql-tools/utils |
10.2.0 | 10.2.1 | |
@npmcli/arborist |
7.5.2 | 7.5.3 | |
@npmcli/config |
8.3.2 | 8.3.3 | |
@npmcli/package-json |
5.1.0 | 5.1.1 | |
@peculiar/webcrypto |
1.4.6 | 1.5.0 | |
@testing-library/preact |
3.2.3 | 3.2.4 | |
@testing-library/user-event |
- | 14.5.2 | |
@typescript-eslint/eslint-plugin |
7.10.0 | 7.11.0 | |
@typescript-eslint/parser |
7.10.0 | 7.11.0 | |
@typescript-eslint/scope-manager |
7.10.0 | 7.11.0 | |
@typescript-eslint/type-utils |
7.10.0 | 7.11.0 | |
@typescript-eslint/types |
7.10.0 | 7.11.0 | |
@typescript-eslint/typescript-estree |
7.10.0 | 7.11.0 | |
@typescript-eslint/utils |
7.10.0 | 7.11.0 | |
@typescript-eslint/visitor-keys |
7.10.0 | 7.11.0 | |
@walletconnect/core |
2.13.0 | 2.13.1 | |
@walletconnect/sign-client |
2.13.0 | 2.13.1 | |
@walletconnect/types |
2.13.0 | 2.13.1 | |
@walletconnect/universal-provider |
2.13.0 | 2.13.1 | |
@walletconnect/utils |
2.13.0 | 2.13.1 | |
caniuse-lite |
1.0.30001623 | 1.0.30001625 | |
electron-to-chromium |
1.4.783 | 1.4.786 | |
eslint-plugin-react |
7.34.1 | 7.34.2 | |
libnpmdiff |
6.1.2 | 6.1.3 | |
libnpmexec |
8.1.1 | 8.1.2 | |
libnpmfund |
5.0.10 | 5.0.11 | |
libnpmpack |
7.0.2 | 7.0.3 | |
libnpmpublish |
9.0.8 | 9.0.9 | |
libnpmsearch |
7.0.5 | 7.0.6 | |
libnpmversion |
6.0.2 | 6.0.3 | |
loader-utils |
3.2.1 | 3.2.2 | |
npm |
10.8.0 | 10.8.1 | |
sass |
1.77.2 | 1.77.3 | |
ua-parser-js |
1.0.37 | 1.0.38 | |
webcrypto-core |
1.7.9 | 1.8.0 |
Very good catch @ebma ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works like a charm, great job 🙏
|
Status | Count |
---|---|
1 | |
37 |
Click to toggle table visibility
Name | Status | Previous | Current |
---|---|---|---|
@graphql-tools/delegate |
10.0.10 | 10.0.11 | |
@graphql-tools/documents |
1.0.0 | 1.0.1 | |
@graphql-tools/schema |
10.0.3 | 10.0.4 | |
@graphql-tools/utils |
10.2.0 | 10.2.1 | |
@npmcli/arborist |
7.5.2 | 7.5.3 | |
@npmcli/config |
8.3.2 | 8.3.3 | |
@npmcli/package-json |
5.1.0 | 5.1.1 | |
@peculiar/webcrypto |
1.4.6 | 1.5.0 | |
@testing-library/preact |
3.2.3 | 3.2.4 | |
@testing-library/user-event |
- | 14.5.2 | |
@typescript-eslint/eslint-plugin |
7.10.0 | 7.11.0 | |
@typescript-eslint/parser |
7.10.0 | 7.11.0 | |
@typescript-eslint/scope-manager |
7.10.0 | 7.11.0 | |
@typescript-eslint/type-utils |
7.10.0 | 7.11.0 | |
@typescript-eslint/types |
7.10.0 | 7.11.0 | |
@typescript-eslint/typescript-estree |
7.10.0 | 7.11.0 | |
@typescript-eslint/utils |
7.10.0 | 7.11.0 | |
@typescript-eslint/visitor-keys |
7.10.0 | 7.11.0 | |
@walletconnect/core |
2.13.0 | 2.13.1 | |
@walletconnect/sign-client |
2.13.0 | 2.13.1 | |
@walletconnect/types |
2.13.0 | 2.13.1 | |
@walletconnect/universal-provider |
2.13.0 | 2.13.1 | |
@walletconnect/utils |
2.13.0 | 2.13.1 | |
caniuse-lite |
1.0.30001623 | 1.0.30001625 | |
electron-to-chromium |
1.4.783 | 1.4.786 | |
eslint-plugin-react |
7.34.1 | 7.34.2 | |
libnpmdiff |
6.1.2 | 6.1.3 | |
libnpmexec |
8.1.1 | 8.1.2 | |
libnpmfund |
5.0.10 | 5.0.11 | |
libnpmpack |
7.0.2 | 7.0.3 | |
libnpmpublish |
9.0.8 | 9.0.9 | |
libnpmsearch |
7.0.5 | 7.0.6 | |
libnpmversion |
6.0.2 | 6.0.3 | |
loader-utils |
3.2.1 | 3.2.2 | |
npm |
10.8.0 | 10.8.1 | |
sass |
1.77.2 | 1.77.3 | |
ua-parser-js |
1.0.37 | 1.0.38 | |
webcrypto-core |
1.7.9 | 1.8.0 |
Ready for merge. |
What:
When the amount for the bridge to Pendulum contains higher amount of decimals than 12, the UI remains no responsive. The inspect on the number gives an error attached in the screenshot below.
How:
Convert the input to proper extrinsic parameter type
Closes: #446